/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, middleware, controller } = app;
  router.get('获取历史列表', '/history/home/list', controller.home.list);
  router.post('获取历史列表', '/history/home/insert', middleware.jwt(), controller.home.insert);
  router.get('获取历史详情', '/history/home/info', middleware.jwt(), controller.home.info);
  router.get('获取SM配置', '/history/home/getSM', controller.home.getSM);
};
